<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use DB;

class SsController extends Controller
{
    public function ss(){
       
        if($_GET['key']) {              
            $sql = DB::select("select * from arts where title like '%$_GET[key]%'");           
            return view('ss',['sql'=>$sql]); 
    } 
    }
}
